MercadoPago\Woocommerce\Gateways\AbstractGateway B

Total Complexity 86
Dependencies 13
Dependents 20
Total lines 1,034
Lines of code 583
Logical lines of code 175
Comment lines 259
Methods 47
Properties 12

Methods 47

Method Rating Maintainability Complexity Lines of code
getCredentialExpiredNotice()
A
47 7 35
processReturnFail()
S
50 5 27
update_option()
S
55 5 20
process_refund()
S
53 3 23
process_payment()
S
54 3 21
loadMelidataStoreScripts()
S
56 3 20
getAmountAndCurrency()
S
59 3 14
formFieldsHeaderSection()
S
46 1 42
formFieldsFooterSection()
S
47 1 42
getAmount()
S
61 3 12
getHomologValidateNoticeOrHidden()
S
55 2 21
getCredentialValidationNoticeOrHidden()
S
55 2 21
processBlocksCheckoutData()
S
63 3 10
payment_scripts()
S
69 3 8
registerCheckoutScripts()
S
52 1 30
canAdminLoadScriptsAndStyles()
S
73 3 5
getFeeTitle()
S
61 2 13
missingCredentialsFormFieldNotice()
S
57 1 17
saveOrderPaymentsId()
S
65 2 9
init_form_fields()
S
74 2 5
canCheckoutLoadScriptsAndStyles()
S
75 2 4
loadResearchComponent()
S
60 1 15
registerDiscountAndCommissionFeesOnCart()
S
75 2 5
getActionableValue()
S
68 2 7
handleWithRejectPayment()
S
68 2 7
generate_mp_actionable_input_html()
S
60 1 14
__construct()
S
60 1 13
formFields()
S
70 1 7
formFieldsMainSection()
S
100 1 0
isMissingCredentials()
S
72 1 6
registerAdminScripts()
S
66 1 10
payment_fields()
S
91 1 2
validate_fields()
S
82 1 3
webhook()
S
70 1 6
isAvailable()
S
81 1 3
getCheckoutName()
S
81 1 3
getFeeText()
S
74 1 4
generate_mp_toggle_switch_html()
S
64 1 10
generate_mp_checkbox_list_html()
S
66 1 9
generate_mp_config_title_html()
S
65 1 10
generate_mp_card_info_html()
S
65 1 10
generate_mp_preview_html()
S
65 1 10
generate_mp_support_link_html()
S
65 1 10
generate_mp_tooltip_selection_html()
S
65 1 10
getRejectedPaymentErrorMessage()
S
75 1 4
get_connection_url()
S
80 1 3
get_settings_url()
S
79 1 3